//
//  JYTextLabel.h
//  JYDanmu
//
//  Created by jianyong.wang on 2017/12/20.
//  Copyright © 2017年 jianyong.wang. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface JYTextLabel : UILabel
/* 弹幕滚动速度 */
@property (nonatomic, assign, readonly) CGFloat  dmlSpeed;
/* 当前弹幕开始动画时间 */
@property (nonatomic, strong ) NSDate   * startTime;
/* 创建显示文本载体 */
+ (instancetype)initDML:(NSString *)content originY:(CGFloat)originY superFrame:(CGRect)superFrame danMuHeight:(CGFloat)height rollTime:(CGFloat)rollTime;
/* 开始弹幕动画 */
- (void)beginAnimationChanel:(NSUInteger)chanel complete:(void(^)(bool,NSUInteger))complete;
- (void)stopAnimation;
@end
